package zust.study.blockchain.demo;

/**
 * @author senselyan
 * @Description: ${todo}
 * @date 2018/3/19 16:00
 */
public class Transaction {

    /** 发送人 */
    private String sender;

    /** 接收人 */
    private String recipient;

    /** 金额 */
    private long amount;


    public String getSender() {
        return sender;
    }

    public void setSender(String sender) {
        this.sender = sender;
    }

    public String getRecipient() {
        return recipient;
    }

    public void setRecipient(String recipient) {
        this.recipient = recipient;
    }

    public long getAmount() {
        return amount;
    }

    public void setAmount(long amount) {
        this.amount = amount;
    }

    @Override
    public String toString() {
        return "{\"Transaction\":{"
                + "                        \"sender\":\"" + sender + "\""
                + ",                         \"recipient\":\"" + recipient + "\""
                + ",                         \"amount\":\"" + amount + "\""
                + "}}";
    }

}
